package com.cxria.pattern.proxy

class GamePlayerProxy implements IGamePlayer {

    private IGamePlayer gamePlayer

    GamePlayerProxy(IGamePlayer gamePlayer) {
        this.gamePlayer = gamePlayer
    }

    @Override
    void login(String user, String password) {
        gamePlayer.login(user, password)
    }

    @Override
    void killBoss() {
        gamePlayer.killBoss()
    }

    @Override
    void upgrade() {
        gamePlayer.upgrade()
    }

}
